<%
# Copyright (C) 2014 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
%>

<%= fields_for :settings, OpenObject.new(settings) do |f| %>
  <table style="width: 500px;" class="formtable">
    <tr>
      <td colspan="2">
        <p><%= t(:description, <<-TEXT)
          PandaPub is a pub/sub service which, when configured, allows
          some parts of Canvas to receive notifications of events within
          the browser, rather than polling for changes.
          TEXT
        %></p>
      </td>
    </tr>
    <tr>
      <td><%= f.blabel :base_url, :en => "Base URL" %></td>
      <td>
        <%= f.text_field :base_url %>
      </td>
    </tr>
    <tr>
      <td><%= f.blabel :application_id, :en => "Application Id" %></td>
      <td>
        <%= f.text_field :application_id %>
      </td>
    </tr>
    <tr>
      <td><%= f.blabel :key_id, :en => "Key ID" %></td>
      <td>
        <%= f.text_field :key_id %>
      </td>
    </tr>
    <tr>
      <td><%= f.blabel :key_secret, :en => "Key Secret" %></td>
      <td>
        <%= f.password_field :key_secret %>
      </td>
    </tr>
  </table>
<% end %>

